import request from '@/utils/request'
// 客诉工单
export function CustomerOrderAjax(data) {
  console.log(data)
  return request({
    url: '/cs/customerComplaint/collect',
    method: 'post',
    data
  })
}
// 工单处理质量统计
export function orderHandleAjax(data) {
  return request({
    url: '/cs/sheetHandle/collect',
    method: 'post',
    data
  })
}
// 理赔账单-统计数据
export function settlementAjax(data) {
  return request({
    url: '/cs/claimsBill/collect',
    method: 'post',
    data
  })
}
// 理赔账单-列表数据
export function getClaimsBillList(data) {
  return request({
    url: '/cs/claimsBill/search',
    method: 'post',
    data
  })
}

// 理赔账单-理赔类型-查大类
export function getClaimTypeOne() {
  return request({
    url: '/hq/claimType/oneLevel',
    method: 'get',
  })
}
// 理赔账单-理赔类型-根据大类查小类
export function getClaimTypeByParentId(id) {
  return request({
    url: '/hq/claimType/selectByParentId?parentId=' + id,
    method: 'get'
  })
}
// 理赔账单-理赔类型-默认小类
export function getClaimTypeTwo() {
  return request({
    url: '/hq/claimType/twoLevel',
    method: 'get'
  })
}

// 工单渠道下拉
export function getSheetChannelList() {
  return request({
    url: '/cs/sheetChannel/selectAll',
    method: 'get',
  })
}

// 工单类型下拉
export function getsheetTypeList() {
  return request({
    url: '/cs/sheetType/selectAll',
    method: 'get',
  })
}

// 揽收员/员工下拉
export function getSolicitorList() {
  return request({
    url: '/hq/solicitor/selectAll',
    method: 'get',
  })
}